-- GENERATED SPELL FOR [Forest Lurker] --


function spell0_1195(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1195', 511, 1)
end

function spell1_1195(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1195', 0, 1)
end

function spell2_1195(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1195', 0, 1)
end

function spell3_1195(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1195', 30000, 1)
end

function spell4_1195(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(4167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1195', 4000, 1)
end

function Sorts_1195(pUnit, Event)
local choix_sorts_1195 = math.random(0, 4)
if choix_sorts_1195 == 0 then
pUnit:RegisterEvent('spell0_1195', 1, 1)
end
if choix_sorts_1195 == 1 then
pUnit:RegisterEvent('spell1_1195', 1, 1)
end
if choix_sorts_1195 == 2 then
pUnit:RegisterEvent('spell2_1195', 1, 1)
end
if choix_sorts_1195 == 3 then
pUnit:RegisterEvent('spell3_1195', 1, 1)
end
if choix_sorts_1195 == 4 then
pUnit:RegisterEvent('spell4_1195', 1, 1)
end
end

function mob1195_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1195', math.random(1500, 3000), 1)
end

function mob1195_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1195_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1195_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1195, 1, 'mob1195_Action')
RegisterUnitEvent(1195, 2, 'mob1195_Leave')
RegisterUnitEvent(1195, 3, 'mob1195_Kill')
RegisterUnitEvent(1195, 4, 'mob1195_Die')
